gtk4.git
12 years agoGdkScreenX11: Dispose visuals
Matthias Clasen [Sat, 29 Jun 2013 23:23:23 +0000 (19:23 -0400)]
GdkScreenX11: Dispose visuals

If we let them hold onto their X resources until finalize,
it is too late.

12 years agoGdkVisualX11: Add a dispose implementation
Matthias Clasen [Sat, 29 Jun 2013 23:22:51 +0000 (19:22 -0400)]
GdkVisualX11: Add a dispose implementation

We need to be able to drop X resources before finalization.

12 years agoGdkDeviceManagerXI2: chain up in constructed
Matthias Clasen [Sat, 29 Jun 2013 23:21:28 +0000 (19:21 -0400)]
GdkDeviceManagerXI2: chain up in constructed

Dispose does chain up, and the parent class' dispose expects
that the object has been fully constructed.

12 years agocsd: Improve window button handling
Matthias Clasen [Sat, 29 Jun 2013 22:18:35 +0000 (18:18 -0400)]
csd: Improve window button handling

Group the buttons on each side in a box, and give them different
style classes, so themes can differentiate (this is partially a
workaround for limitations in our css selectors). The boxes also
let us add a margin below the buttons, without affecting the
allocation of the buttons themselves.

12 years agocsd: use the correct icon name for close button
Matthias Clasen [Sat, 29 Jun 2013 22:15:01 +0000 (18:15 -0400)]
csd: use the correct icon name for close button

The icon is called window-close-symbolic.

12 years agocsd: Use a dedicated style class for window buttons
Matthias Clasen [Sat, 29 Jun 2013 22:09:11 +0000 (18:09 -0400)]
csd: Use a dedicated style class for window buttons

This allows themes to differentiate between regular buttons
in a title bar, and window buttons.

12 years agocsd: Improve the window title
Matthias Clasen [Sat, 29 Jun 2013 22:02:17 +0000 (18:02 -0400)]
csd: Improve the window title

Manually create the label, so that we can set its margins.

12 years agotextiter: doc precision for forward_search() and backward_search()
Sébastien Wilmet [Sat, 29 Jun 2013 14:33:23 +0000 (16:33 +0200)]
textiter: doc precision for forward_search() and backward_search()

https://bugzilla.gnome.org/show_bug.cgi?id=703313

12 years agoAdd a titlebar testcase
Matthias Clasen [Sat, 29 Jun 2013 12:52:04 +0000 (08:52 -0400)]
Add a titlebar testcase

This is an experiment towards how we want client-side titlebars
to look.

12 years agoAdd a gtk_window_close function
Matthias Clasen [Sat, 29 Jun 2013 02:19:15 +0000 (22:19 -0400)]
Add a gtk_window_close function

This is useful when adding close buttons in custom titlebars.

12 years agotestheaderbar: fix a mmemonic
Matthias Clasen [Fri, 28 Jun 2013 20:08:15 +0000 (16:08 -0400)]
testheaderbar: fix a mmemonic

12 years agoTrivial rewording
Matthias Clasen [Fri, 28 Jun 2013 20:01:44 +0000 (16:01 -0400)]
Trivial rewording

Make the listbox demo follow the naming convention of the
other demos.

12 years agoFix the build
Matthias Clasen [Fri, 28 Jun 2013 10:47:48 +0000 (06:47 -0400)]
Fix the build

We have to uglify the deprecation messages to make gtk-doc
handle them. The get turned into XML attributes, and there
is no automatic quoting to protect quotes in the text.

12 years agoDeprecate GtkImageMenuItem
William Jon McCann [Thu, 27 Jun 2013 22:48:46 +0000 (18:48 -0400)]
Deprecate GtkImageMenuItem

Use GtkMenuItem for menus with only text or GMenu for those
with icons for "nouns" and just text for "verbs".

12 years agoDeprecate the gtk stock functions
William Jon McCann [Thu, 27 Jun 2013 21:51:38 +0000 (17:51 -0400)]
Deprecate the gtk stock functions

12 years agoMake ignored settings be set to false by default
William Jon McCann [Thu, 27 Jun 2013 02:18:01 +0000 (22:18 -0400)]
Make ignored settings be set to false by default

12 years agodocs: Don't drop xml/gtkstock.xml
Rico Tzschichholz [Thu, 27 Jun 2013 19:14:07 +0000 (21:14 +0200)]
docs: Don't drop xml/gtkstock.xml

12 years agomenushell: don't activate a menu entry when opening a big menu
Emilio Pozuelo Monfort [Thu, 27 Jun 2013 17:01:14 +0000 (19:01 +0200)]
menushell: don't activate a menu entry when opening a big menu

If a menu is opened and it doesn't fit entirely below or above
the menu bar, gtk+ will place it on top. The button release will
then activate the popup item that happens to appear under the
cursor. Avoid this by ignoring release events if they originated
in the parent menu bar and the duration of the press was too short.

https://bugzilla.gnome.org/show_bug.cgi?id=703069

12 years agobuild: Fix make dist
Rico Tzschichholz [Thu, 27 Jun 2013 17:43:47 +0000 (19:43 +0200)]
build: Fix make dist

12 years agodocs: Add GtkListBox functions to their section and fix links
Emanuele Aina [Mon, 24 Jun 2013 13:58:10 +0000 (15:58 +0200)]
docs: Add GtkListBox functions to their section and fix links

https://bugzilla.gnome.org/show_bug.cgi?id=702981

12 years agoFix default value of scrolled window placement-set property
William Jon McCann [Thu, 27 Jun 2013 02:07:00 +0000 (22:07 -0400)]
Fix default value of scrolled window placement-set property

To make the testsuite happy.

12 years agoDisable primary paste by default
William Jon McCann [Thu, 27 Jun 2013 01:41:45 +0000 (21:41 -0400)]
Disable primary paste by default

12 years agoFixup some of the example widgets used in the docs
William Jon McCann [Thu, 27 Jun 2013 01:35:40 +0000 (21:35 -0400)]
Fixup some of the example widgets used in the docs

12 years agoDeprecate GtkIconFactory, GtkIconSet, GtkIconSource
William Jon McCann [Wed, 26 Jun 2013 22:41:15 +0000 (18:41 -0400)]
Deprecate GtkIconFactory, GtkIconSet, GtkIconSource

We want to use GtkIconTheme instead. It is worth noting that
the parts that remain undeprecated are GtkIconSize and gtk_icon_size_lookup.

12 years agoDon't use a GtkIconSet to pick the logo image
William Jon McCann [Wed, 26 Jun 2013 22:46:12 +0000 (18:46 -0400)]
Don't use a GtkIconSet to pick the logo image

Just use the first pixbuf in the default list.

12 years agoDeprecate and ignore gtk-icon-sizes setting
William Jon McCann [Wed, 26 Jun 2013 22:01:22 +0000 (18:01 -0400)]
Deprecate and ignore gtk-icon-sizes setting

We don't have icons rendered at arbitrary sizes and we have better
APIs that aren't restricted to GtkIconSizes.

12 years agoRemove the rest of gtk-touchscreen-mode
William Jon McCann [Wed, 26 Jun 2013 19:35:47 +0000 (15:35 -0400)]
Remove the rest of gtk-touchscreen-mode

12 years agoDeprecate and ignore gtk-keynav-cursor-only and gtk-keynav-wrap-around
William Jon McCann [Wed, 26 Jun 2013 19:33:10 +0000 (15:33 -0400)]
Deprecate and ignore gtk-keynav-cursor-only and gtk-keynav-wrap-around

12 years agoDeprecate and ignore gtk-menu-bar-accel setting
William Jon McCann [Wed, 26 Jun 2013 18:21:44 +0000 (14:21 -0400)]
Deprecate and ignore gtk-menu-bar-accel setting

Use 'F10' by default.

12 years agoDeprecate and ignore gtk-menu popup and popdown delay settings
William Jon McCann [Wed, 26 Jun 2013 18:08:37 +0000 (14:08 -0400)]
Deprecate and ignore gtk-menu popup and popdown delay settings

Just pick good defaults. The a11y team confirmed that they don't
rely on them.

12 years agoDeprecate and ignore gtk-scrolled-window-placement
William Jon McCann [Wed, 26 Jun 2013 17:06:12 +0000 (13:06 -0400)]
Deprecate and ignore gtk-scrolled-window-placement

Just use GTK_CORNER_TOP_LEFT and allow it to be changed with
gtk_scrolled_window_set_placement().

12 years agoDeprecate and ignore gtk-fallback-icon-theme
William Jon McCann [Wed, 26 Jun 2013 16:47:43 +0000 (12:47 -0400)]
Deprecate and ignore gtk-fallback-icon-theme

The standard icon themes have built in fallbacks.

12 years agoDeprecate and ignore the cursor blink settings
William Jon McCann [Wed, 26 Jun 2013 16:32:31 +0000 (12:32 -0400)]
Deprecate and ignore the cursor blink settings

And hardcode them to reasonable values.

12 years agoDeprecate and ignore gtk-can-change-accels
William Jon McCann [Wed, 26 Jun 2013 16:00:42 +0000 (12:00 -0400)]
Deprecate and ignore gtk-can-change-accels

It is disabled by default

12 years agoMark gtk-color-palette as deprecated
William Jon McCann [Wed, 26 Jun 2013 15:47:32 +0000 (11:47 -0400)]
Mark gtk-color-palette as deprecated

It is only used by the deprecated color selector widget.

12 years agoDeprecate and ignore gtk-enable-mnemonics and gtk-auto-mnemonics" properties
William Jon McCann [Wed, 26 Jun 2013 15:16:12 +0000 (11:16 -0400)]
Deprecate and ignore gtk-enable-mnemonics and gtk-auto-mnemonics" properties

They are both enabled by default.

12 years agoDeprecate and ignore gtk-menu-images setting
William Jon McCann [Wed, 26 Jun 2013 14:36:56 +0000 (10:36 -0400)]
Deprecate and ignore gtk-menu-images setting

GtkImageMenuItem images can still be enabled selectively by the app author
using the always-show-image property on the item.

12 years agoUpdated POTFILES.skip
Piotr Drąg [Wed, 26 Jun 2013 14:46:53 +0000 (16:46 +0200)]
Updated POTFILES.skip

12 years agowayland: Add missing symbol export
Rob Bradford [Wed, 26 Jun 2013 14:09:51 +0000 (15:09 +0100)]
wayland: Add missing symbol export

gdk_wayland_window_set_use_custom_surface was not being exported
correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=695861

12 years agotests: Ignore deprecation warnings
Benjamin Otte [Wed, 26 Jun 2013 13:50:32 +0000 (15:50 +0200)]
tests: Ignore deprecation warnings

12 years agotestsuite: Ignore deprecation warnings
Benjamin Otte [Wed, 26 Jun 2013 13:50:21 +0000 (15:50 +0200)]
testsuite: Ignore deprecation warnings

12 years agogtk-demo: Fix compile warnings
Benjamin Otte [Wed, 26 Jun 2013 13:50:05 +0000 (15:50 +0200)]
gtk-demo: Fix compile warnings

12 years agogtk-demo: Remove unused variable
Benjamin Otte [Wed, 26 Jun 2013 13:49:50 +0000 (15:49 +0200)]
gtk-demo: Remove unused variable

12 years agosettings Deprecate properties
Benjamin Otte [Wed, 26 Jun 2013 13:04:24 +0000 (15:04 +0200)]
settings Deprecate properties

Deprecate the properties that were brought back from the dead in the
last patch.

12 years agoRevert "Remove the show-unicode-menu and show-input-method-menu settings"
Benjamin Otte [Wed, 26 Jun 2013 13:02:18 +0000 (15:02 +0200)]
Revert "Remove the show-unicode-menu and show-input-method-menu settings"

Removing object properties is too much of an API break, even for
properties we don't expect to be used outside of GTK itself.

This reverts commit 8b811b623c387b99d42fb065535d5f6a05d52fa5.

12 years agoDeprecate and ignore gtk-button-images setting
William Jon McCann [Wed, 26 Jun 2013 12:24:44 +0000 (08:24 -0400)]
Deprecate and ignore gtk-button-images setting

Button images can still be enabled selectively by the app author
using the always-use-image property on the button.

12 years agowindow: Make process_updates faster
John Lindgren [Wed, 26 Jun 2013 08:03:51 +0000 (10:03 +0200)]
window: Make process_updates faster

Only look at "impl" windows in gdk_window_process_updates_with_mode()
since these are the only ones we care about.  This avoids a lot of
unnecessary calls to g_list_copy() and g_object_ref().

12 years agoFix a couple documentation warnings
William Jon McCann [Tue, 25 Jun 2013 21:03:08 +0000 (17:03 -0400)]
Fix a couple documentation warnings

12 years agoStart deprecating some GtkStock API
William Jon McCann [Tue, 25 Jun 2013 03:47:52 +0000 (23:47 -0400)]
Start deprecating some GtkStock API

12 years agoMake the testsuite happy that get gets the default value
William Jon McCann [Tue, 25 Jun 2013 15:48:16 +0000 (11:48 -0400)]
Make the testsuite happy that get gets the default value

12 years agoAdjust the a11y testsuite to match expected output
William Jon McCann [Tue, 25 Jun 2013 15:18:05 +0000 (11:18 -0400)]
Adjust the a11y testsuite to match expected output

12 years agoFix some regressions from stock migration
William Jon McCann [Tue, 25 Jun 2013 14:31:57 +0000 (10:31 -0400)]
Fix some regressions from stock migration

12 years agoDocument GtkTextSearchFlags
Sébastien Wilmet [Tue, 25 Jun 2013 09:58:57 +0000 (11:58 +0200)]
Document GtkTextSearchFlags

Move the doc about the flags from gtk_text_iter_forward_search() to the
enum.

https://bugzilla.gnome.org/show_bug.cgi?id=390048

12 years agogdkwindow: Don't recurse into clipped children when updating
Alexander Larsson [Tue, 25 Jun 2013 08:07:49 +0000 (10:07 +0200)]
gdkwindow: Don't recurse into clipped children when updating

We don't want to recurse into children that are clipped, as that is
wasted work. We handle this by moving the empty check to the top
of the function and only using the clipped region everywhere.

12 years agoStart migrating internals away from GtkStock
William Jon McCann [Mon, 24 Jun 2013 23:28:53 +0000 (19:28 -0400)]
Start migrating internals away from GtkStock

12 years agoRemove more discontinued ChangeLogs
William Jon McCann [Mon, 24 Jun 2013 22:00:12 +0000 (18:00 -0400)]
Remove more discontinued ChangeLogs

They are all in git.

12 years agoDon't use stock APIs in the testsuite
William Jon McCann [Mon, 24 Jun 2013 21:57:44 +0000 (17:57 -0400)]
Don't use stock APIs in the testsuite

12 years agoRemove most of the stock API usage from the tests
William Jon McCann [Mon, 24 Jun 2013 21:31:22 +0000 (17:31 -0400)]
Remove most of the stock API usage from the tests

With the exception of GtkActions and the tests for stock items.

12 years agomenu model: set separator label conditionally
Ryan Lortie [Mon, 24 Jun 2013 21:59:52 +0000 (17:59 -0400)]
menu model: set separator label conditionally

When creating separators we were binding the "label" property on the
tracker to the "label" property on the GtkSeparatorMenuItem.

This was problematic for two reasons.

First, it was pointless.  The section header label will never change.

Second, it was causing problems: doing the binding caused the value to
be initially synced up, even if it was NULL.  Doing this caused
GtkMenuItem to create a GtkAccelLabel and add it as a child, which
prevented the separator from being shown normally.

Change the code a bit so that we just call gtk_menu_item_set_label()
when creating the item, if we find the label to be non-NULL.

Also, show() the separator item at first.  GtkMenu manages visibility of
separators internally, but it seems "more correct" to show it ourselves
at first.

12 years agoGtkMenuTracker: fix leak when creating submenus
Ryan Lortie [Mon, 24 Jun 2013 21:59:02 +0000 (17:59 -0400)]
GtkMenuTracker: fix leak when creating submenus

12 years agoRemove usage of stock APIs in demo
William Jon McCann [Fri, 21 Jun 2013 17:46:54 +0000 (13:46 -0400)]
Remove usage of stock APIs in demo

With the exception of GtkAction.

12 years agoDon't use stock APIs in the bloatpad example
William Jon McCann [Fri, 21 Jun 2013 19:21:23 +0000 (15:21 -0400)]
Don't use stock APIs in the bloatpad example

12 years agoDon't use stock APIs in the widget factory
William Jon McCann [Fri, 21 Jun 2013 19:07:52 +0000 (15:07 -0400)]
Don't use stock APIs in the widget factory

12 years agotreeview: Ensure we first validate the visible area when validating
Benjamin Otte [Mon, 24 Jun 2013 18:15:26 +0000 (20:15 +0200)]
treeview: Ensure we first validate the visible area when validating

This invariant stopped being guaranteed when we moved the visible area
validation from a high priority idle to a tick callback.

Fixes redrawing bugs like row expanding sometimes not having any visual
effect.

12 years agotreeview: Reorder code
Benjamin Otte [Mon, 24 Jun 2013 18:13:15 +0000 (20:13 +0200)]
treeview: Reorder code

This just moves a function and is in preparation for the next commit.

12 years agotreeview: Actually remove presize handler when we presize
Benjamin Otte [Mon, 24 Jun 2013 17:38:08 +0000 (19:38 +0200)]
treeview: Actually remove presize handler when we presize

Avoids multiple calls to it.

12 years agotextiter: bug fix in forward_search() and backward_search()
Sébastien Wilmet [Mon, 24 Jun 2013 15:00:31 +0000 (17:00 +0200)]
textiter: bug fix in forward_search() and backward_search()

When the search is case sensitive, g_utf8_normalize() is not called, so
the skip_decomp argument of the function forward_chars_with_skipping()
must be FALSE.

To verify that, when searching "éb", the count parameter of
forward_chars_with_skipping() have a different value:
- case sensitive: count = 2
- case insensitive: count = 3 (g_utf8_normalize() has been called)

The commit adds unit tests that didn't pass before, and that now pass
(without known regression, obviously).

https://bugzilla.gnome.org/show_bug.cgi?id=702977

12 years agoAdd missing allow-none annotations
William Jon McCann [Fri, 21 Jun 2013 20:02:31 +0000 (16:02 -0400)]
Add missing allow-none annotations

12 years agoRemove ancient changelogs
William Jon McCann [Fri, 21 Jun 2013 19:25:47 +0000 (15:25 -0400)]
Remove ancient changelogs

They can be retrieved from git.

12 years agoFix gtk3-demo MSVC Project
Chun-wei Fan [Mon, 24 Jun 2013 06:25:31 +0000 (14:25 +0800)]
Fix gtk3-demo MSVC Project

Build the new listbox.c source file, as that file was missed.

12 years agotests: Ignore deprecations
Benjamin Otte [Sun, 23 Jun 2013 23:13:44 +0000 (01:13 +0200)]
tests: Ignore deprecations

... for where there's no replacement.

12 years agoOptimize gdk_x11_screen_supports_net_wm_hint()
John Lindgren [Sun, 23 Jun 2013 19:22:13 +0000 (21:22 +0200)]
Optimize gdk_x11_screen_supports_net_wm_hint()

Move the call to gdk_x11_atom_to_xatom_for_display() outside of the
search loop in gdk_x11_screen_supports_net_wm_hint().  In my test case
(running Audacious for about a minute), this reduced the total number of
hash table lookups performed from 370,000 to 230,000.

https://bugzilla.gnome.org/show_bug.cgi?id=702913

12 years agoGMenuModel -> GtkMenu binding: show submenu items
Ryan Lortie [Sat, 22 Jun 2013 13:34:21 +0000 (09:34 -0400)]
GMenuModel -> GtkMenu binding: show submenu items

In the non-submenu case we bind the 'visibility' attribute to the
tracker, which takes care of showing the item.  In the submenu case, we
don't bind all of the properties, so we miss this one.

Deal with it by just show()ing the submenu item.

https://bugzilla.gnome.org/show_bug.cgi?id=702332

12 years agoGtkFileChooserButton: Also emit 'file-set' when changing the selection through the...
Federico Mena Quintero [Sat, 22 Jun 2013 00:14:36 +0000 (19:14 -0500)]
GtkFileChooserButton: Also emit 'file-set' when changing the selection through the combo box

https://bugzilla.gnome.org/show_bug.cgi?id=696498

12 years agoGtkFileChooserEntry: don't inline-complete if the entry doesn't have the focus
Federico Mena Quintero [Fri, 21 Jun 2013 23:34:31 +0000 (18:34 -0500)]
GtkFileChooserEntry: don't inline-complete if the entry doesn't have the focus

When the file chooser changes directories, it tells the GtkFileChooserEntry to
change its base folder (i.e. the folder from which relative pathnames are resolved).
GtkFileChooserEntry then starts loading a GtkFileSystemModel asynchronously.
In the finished_loading_cb(), however, it would always ask the GtkEntryCompletion
to insert the completion prefix, since that finished_loading_cb() is what is also used
while the user is typing *in the entry*.

But when the entry doesn't have the focus (e.g. the user changed directories by double-clicking
on the file list in the file chooser), there's no reason to insert completions at all.

https://bugzilla.gnome.org/show_bug.cgi?id=672271
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoBump version
Matthias Clasen [Fri, 21 Jun 2013 23:32:34 +0000 (19:32 -0400)]
Bump version

12 years ago3.9.6
Matthias Clasen [Fri, 21 Jun 2013 22:32:06 +0000 (18:32 -0400)]
3.9.6

12 years agoa11y: Include testdata in EXTRA_DIST
Matthias Clasen [Fri, 21 Jun 2013 18:05:21 +0000 (14:05 -0400)]
a11y: Include testdata in EXTRA_DIST

Otherwise tests don't work from a tarball release.

12 years agofilechooser: In testfilechooser, be strict about the --action option
Federico Mena Quintero [Fri, 21 Jun 2013 15:19:54 +0000 (10:19 -0500)]
filechooser: In testfilechooser, be strict about the --action option

It would default to GTK_FILE_CHOOSER_ACTION_OPEN if the user's specified --action could not be
parsed.  I can never remember what the right options are, so make the program bail out
if the user specifies an unrecognized option.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoRemove rest of gtk-show-input-method-menu and gtk-show-unicode-menu
William Jon McCann [Fri, 21 Jun 2013 12:55:55 +0000 (08:55 -0400)]
Remove rest of gtk-show-input-method-menu and gtk-show-unicode-menu

They are no longer used.

12 years agoGtkEntry: ellipsize placeholder text
Jonh Wendell [Thu, 20 Jun 2013 17:39:28 +0000 (14:39 -0300)]
GtkEntry: ellipsize placeholder text

The placeholder string is truncated when there's no
room for it in entry's width.

So, by ellipsizing it, the user can notice the text
was truncated so that they can workaround that by,
for example, maximizing the window.

https://bugzilla.gnome.org/show_bug.cgi?id=702763

12 years agotestsuite: Don't use deprecated functions
Benjamin Otte [Fri, 21 Jun 2013 00:22:45 +0000 (02:22 +0200)]
testsuite: Don't use deprecated functions

12 years agofilechooser: Actually return a value
Benjamin Otte [Thu, 20 Jun 2013 16:35:14 +0000 (18:35 +0200)]
filechooser: Actually return a value

12 years agotreeview: Remove duplicate function
Benjamin Otte [Thu, 20 Jun 2013 13:07:58 +0000 (15:07 +0200)]
treeview: Remove duplicate function

12 years agoGtkFileChooser: Missing hour on today's files for it&hu locales on Win32
Valerio Messina [Thu, 13 Jun 2013 20:40:47 +0000 (22:40 +0200)]
GtkFileChooser: Missing hour on today's files for it&hu locales on Win32

The file chooser does not show the hours for files modified today
when using it & hu locales on Win32.  This is due to the %k format conversion
for strftime() that is in Olson's Timezone Package, which msvcrt.dll doesn't have.
Cygwin has it, though.

So for now, we just use a %H format.  While %k would render
six-in-the-morning as " 6" (6 preceded by a space), %H will render it
as "06".

https://bugzilla.gnome.org/show_bug.cgi?id=560337

12 years agoFix gtk_text_iter_forward_to_tag_toggle() for end iter
Sébastien Wilmet [Wed, 3 Apr 2013 11:41:44 +0000 (13:41 +0200)]
Fix gtk_text_iter_forward_to_tag_toggle() for end iter

The function must return TRUE only if there is a tag toggle _after_ the
iter, not _at_ the iter. So for the end iter, the function must always
return FALSE.

Add also unit tests for gtk_text_iter_forward_to_tag_toggle().

https://bugzilla.gnome.org/show_bug.cgi?id=691266

12 years agofilechooser: Fix misleading documentation for gtk_file_chooser_set_preview_widget()
Timothy Arceri [Wed, 29 May 2013 07:20:26 +0000 (17:20 +1000)]
filechooser: Fix misleading documentation for gtk_file_chooser_set_preview_widget()

https://bugzilla.gnome.org/show_bug.cgi?id=701174

12 years agoquartz: remove check for keymap changes from update_keymap()
Michael Natterer [Thu, 20 Jun 2013 15:21:25 +0000 (17:21 +0200)]
quartz: remove check for keymap changes from update_keymap()

The function is now only called when the keymap has actually
changed. bug #698183.
(cherry picked from commit e62709da2ee6619f26c8446b545418e5f1b9e151)

12 years agoquartz: update the keymap only if the input method changed
Michael Natterer [Thu, 20 Jun 2013 15:09:07 +0000 (17:09 +0200)]
quartz: update the keymap only if the input method changed

and not on each keystroke, which for some IMs apparently caused a full
update on each keystroke, not just a check for changes. Patch from
Takuro Ashie, bug #698183.

12 years agoImprove doc of gtk_text_iter_forward_search()
Sébastien Wilmet [Thu, 20 Jun 2013 10:09:20 +0000 (12:09 +0200)]
Improve doc of gtk_text_iter_forward_search()

It was not possible to know if the @limit was for @match_start or
@match_end. It was documented for backward_search(), but not for
forward_search().

https://bugzilla.gnome.org/show_bug.cgi?id=390048

12 years agogtkfilechooserbutton: fix documentation typo
Claudio Saavedra [Thu, 20 Jun 2013 08:47:37 +0000 (11:47 +0300)]
gtkfilechooserbutton: fix documentation typo

https://bugzilla.gnome.org/show_bug.cgi?id=702695

12 years agofilechooser: In testfilechooser, add buttons to get the selection and the current...
Federico Mena Quintero [Wed, 19 Jun 2013 18:37:40 +0000 (13:37 -0500)]
filechooser: In testfilechooser, add buttons to get the selection and the current name

12 years agofilechooser: Add gtk_file_chooser_get_current_name()
Jonh Wendell [Mon, 17 Jun 2013 18:47:56 +0000 (15:47 -0300)]
filechooser: Add gtk_file_chooser_get_current_name()

Currently you can only set the current filename, but not
get it. It's useful to be able to get it in save
dialogs, where the user has typed the desired filename
and you are not in a real directory (recent used, for
example).

https://bugzilla.gnome.org/show_bug.cgi?id=702497

12 years agoIconTheme: Move changed emission to an idle
Alexander Larsson [Wed, 19 Jun 2013 09:06:20 +0000 (11:06 +0200)]
IconTheme: Move changed emission to an idle

By delaying the emission to an idle we avoid a lot of tricky
reentrancy issues. For instance, a normal gtk_icon_theme_choose_icon()
call could in very rare cases (when a user updated an icon theme) emit
a signal which could affect the icon currently being looked up.  This
kind of reentrancy is very hard to test against, especially when it is
so rare, so we're better of avoiding it.

There is no real value to get the change signal directly anyway. All
it can do is affect which icon is rendered the next frame, and we will
handle the queued emission before rendering. Not to mention that icon
theme change detection is polled anyway, so it is already delayed.

https://bugzilla.gnome.org/show_bug.cgi?id=694755

12 years ago[l10n] Updated Italian translation.
Milo Casagrande [Wed, 19 Jun 2013 09:01:23 +0000 (11:01 +0200)]
[l10n] Updated Italian translation.

12 years agoIconTheme: Clear caches when reloading theme
Alexander Larsson [Wed, 19 Jun 2013 07:35:24 +0000 (09:35 +0200)]
IconTheme: Clear caches when reloading theme

When we're reloading the theme in ensure_valid_themes (due to noticing
that a theme dir has changed) we need to also clear the icon cache
as it will not be valid for the new theme.

We already do this in do_theme_change(), but ensure_valid_themes()
was missing this.

https://bugzilla.gnome.org/show_bug.cgi?id=702598

12 years agoIconCache: Keep a ref on the GtkIconData
Alexander Larsson [Wed, 19 Jun 2013 07:32:38 +0000 (09:32 +0200)]
IconCache: Keep a ref on the GtkIconData

The icon data in GttkIconInfo->data is currently owned by the
IconThemeDir->icon_data hashtable. However, on e.g. a theme change
blow_themes() destroys the dirs and thus the data, meaning any
outstanding GtkIconInfo points to stale data.

We solve this by adding a refcount to GtkIconData and reffing it
from GtkIconInfo.

https://bugzilla.gnome.org/show_bug.cgi?id=702598

12 years agoUpdated POTFILES.skip
Piotr Drąg [Tue, 18 Jun 2013 15:24:49 +0000 (17:24 +0200)]
Updated POTFILES.skip

12 years agoGtkBuilder: add new constructor APIs
Ryan Lortie [Tue, 18 Jun 2013 14:19:44 +0000 (10:19 -0400)]
GtkBuilder: add new constructor APIs

Add new APIs gtk_builder_new_from_{file,resource,string}() and encourage
their use over the older _add_from_...() APIs.

https://bugzilla.gnome.org/show_bug.cgi?id=679930

12 years agodocs: GtkBuilder: warn about unusual GError use
Ryan Lortie [Sat, 14 Jul 2012 15:03:29 +0000 (11:03 -0400)]
docs: GtkBuilder: warn about unusual GError use

GtkBuilder returns GError for _add_from_{file,resource,string}(),
implying that the user should be able to recover from these errors.
Mention in the docs that it's unreasonable to try to do this.

https://bugzilla.gnome.org/show_bug.cgi?id=679930